package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

@Data
@ApiModel(description = "课题表")
@TableName("research_topic")
public class ResearchTopic extends BaseEntity {

    @ApiModelProperty(value = "学号stuId")
    @TableField(value = "stu_id")
    private String stuId;

    @ApiModelProperty(value = "课题名称")
    @TableField(value = "research_topic_name")
    private String researchTopicName;

    @ApiModelProperty(value = "课题状态")
    @TableField(value = "research_topic_status")
    private Byte researchTopicStatus;

    @ApiModelProperty(value = "课题等级")
    @TableField(value = "grade")
    private Byte grade;

    @ApiModelProperty(value = "主持人")
    @TableField(value = "host_person")
    private String hostPerson;


    @ApiModelProperty(value = "研究领域")
    @TableField(value = "research_field")
    private Byte researchField;
    @ApiModelProperty(value = "课题开始时间")
    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private LocalDate startTime;

    @ApiModelProperty(value = "课题结束时间")
    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private LocalDate endTime;
}
